博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Ext + java 显示数据库中的二进制图片
阅读量:4583 次
发布时间:2019-06-09

本文共 560 字,大约阅读时间需要 1 分钟。

这是页面js代码 Ext.onReady(function(){   var win=new Ext.Window({        html:""    });   win.show();         })

下面是java中获取二进制的图片(补上)呵呵

public void getView(HttpServletRequest request,HttpServletResponse response,String id) throws IOException{byte[] datas=getViewdatas(id);//获得数据库中的保存的二进制图片InputStream inputstream=new ByteArrayInputStream(datas);OutputStream out=request.getOutputstream();int size=inputstream.read(datas,0,datas.length);if(size>0){  out.write(datas,0,size);}inputstream.close();}

  

转载于:https://www.cnblogs.com/Shalove/archive/2013/01/09/2853855.html

你可能感兴趣的文章
UVa 10723 Cyborg Genes(LCS变种)
查看>>
Jmeter参数化
查看>>
Linux用iso镜像制作本地yum源
查看>>
在SSH项目中Struts2、Spring、Hibernate分别起到什么作用?
查看>>
网络编程协议
查看>>
5.9
查看>>
备份项目实例
查看>>
8天学通MongoDB——第二天 细说增删查改
查看>>
TextBloc研究
查看>>
Engine auto idle help conserve fuel reduce noise
查看>>
MAC下安装pomelo
查看>>
182. Duplicate Emails
查看>>
Redis、Memcache和MongoDB的区别
查看>>
设计模式笔记 ------ 原型模式
查看>>
通过Repeater控件绑定数据,相同数据合并单元格。
查看>>
h5 和之前版本的区别
查看>>
【UVAlive 3989】 Ladies' Choice (稳定婚姻问题)
查看>>
【FFT&NTT 总结】
查看>>
洛谷——P1802 5倍经验日
查看>>
leetcode121—Best Time to Buy and Sell Stock
查看>>